{template 'public/header'}

{template 'public/comhead'}

<link rel="stylesheet" type="text/css" href="../addons/yzzc_sun/template/public/ygcss.css">

<ul class="nav nav-tabs">
    <span class="ygxian"></span>
    <div class="ygdangq">当前位置:</div>
    <li class="active"><a href="javascript:void(0);">品牌信息</a></li>
    <li><a href="{php echo $this->createWebUrl('goods');}"><i class="fa fa-refresh"></i>返回车辆列表</a></li>
</ul>
<div class="main ygmain">
    <form action="" method="post" class="form-horizontal form" enctype="multipart/form-data">
        <div class="panel panel-default ygdefault">
            <div class="panel-heading wyheader">
                品牌信息
            </div>
            <div class="panel-body">
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">首字母</label>
                    <div class="col-sm-9">
                        <input type="text" name="zimu" class="form-control" value="{$info['zimu']}" maxlength="20"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">名称</label>
                    <div class="col-sm-9">
                        <input type="text" name="name" class="form-control" value="{$info['name']}"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">汽车图片</label>
                    <div class="col-sm-9">
                        {php echo tpl_form_field_image('pic', $info['pic']);}
                        <span class="help-block">*建议比例 335*185</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-group">
            <input type="submit" name="submit" value="保存设置" class="btn col-lg-3"
                   style="color: white;background-color: #444444;margin-left: 550px;"/>
            <input type="hidden" name="token" value="{$_W['token']}"/>
            <input type="hidden" name="id" value="{$info['id']}"/>
        </div>
    </form>

</div>
<script type="text/javascript">
    $(function () {
        $("#frame-7").show();
        $("#yframe-7").addClass("wyactive");

    })
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        laydate.render({
            elem: '.astime',
            type: 'datetime'
        });

    });
    $(document).ready(function () {
        //点击追加
        $('.input-group').on('click', '.addSpec', function () {
            //1.把当前的tr克隆一份
            var newTr = $(this).parents('.actime').clone();
            //2.追加
            $(this).parents('.actime').after(newTr);
        })
        //删除
        $(".input-group").on("click", ".delSpec", function () {
            $(this).parents('.actime').remove();
        });

    })
</script>